package com.xingkeduo.dto.transter.appointment;

import lombok.Data;

import java.util.Map;

@Data
public class OrderAppointmentDto {

    //订单号不能为空
    private String orderNo;

    //预约开始时间不能为空
    private String appointmentStartTime;

    //预约结束时间不能为空
    private String appointmentEndTime;

    //库存id不能为空
    private String appointmentId;

    public void covert(AppointmentParamDto appointmentParamDto, Map<String,Object> map) {
        this.orderNo = appointmentParamDto.getOrder_no();
        this.appointmentStartTime=map.get("startTime")+"";
        this.appointmentEndTime=map.get("endTime")+"";
        this.appointmentId=map.get("id")+"";

    }
}
